#include <SDL2/SDL.h>

#include "kill.h"
#include "exit_status.h"

static SDL_Rect bounds;

int screen_width() { return bounds.w; }
int screen_height() { return bounds.h; }

void screen_retrieve_info() {
	if (SDL_GetDisplayBounds(0, &bounds)) {
		kill_sdl("Could not get display bounds", EX_ERR_RETRIEVE_SCREEN_SIZE);
	}
}